package dal;

import java.sql.*;

public class CommonDal {

	public static int execute(PreparedStatement st) throws SQLException {
		ResultSet rs = st.executeQuery();
		int result = rs.getInt(0);
		// rs.close();
		return result;
	}

	public ResultSet executeQuery(PreparedStatement st) throws SQLException {
		ResultSet rs = st.executeQuery();
		return rs;
	}
	
}
